﻿<UserControl x:Class="VNet.VisiSuite.VisiAdmin.Controls.HourlyProductionMeter" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ig="http://schemas.infragistics.com/xaml"
        xmlns:helper="clr-namespace:VNet.VisiSuite.VisiAdmin.Common.Helpers">
    <UserControl.Resources>
        <DataTemplate x:Key="MarkerTemplate">
            <TextBlock Style="{StaticResource NormalTextBlockStyle}" Margin="50 0 0 0">
                <Run Text="{Binding Item.PerCentage}" />
                <Run Text="%" />
            </TextBlock>
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <ig:XamDataChart x:Name="ScatterLineChart" PlotAreaBorderBrush="Transparent" HorizontalZoomable="False" VerticalZoomable="False">
            <ig:XamDataChart.Axes>
                <ig:NumericXAxis x:Name="ScatterLineXAxis" Interval="10" MinimumValue="0" MaximumValue="100" />
                <ig:NumericYAxis x:Name="ScatterLineYAxis" />
            </ig:XamDataChart.Axes>
            <ig:XamDataChart.Series>
                <ig:ScatterLineSeries x:Name="ScatterLineSeries" MarkerType="Square" Thickness="5" XMemberPath="X" YMemberPath="Y" XAxis="{Binding ElementName=ScatterLineXAxis}"
                        YAxis="{Binding ElementName=ScatterLineYAxis}">
                </ig:ScatterLineSeries>
            </ig:XamDataChart.Series>
        </ig:XamDataChart>

        <!--<ig:XamDataChart x:Name="xamDataChart" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="50">
            <ig:XamDataChart.Axes>
                <ig:NumericXAxis x:Name="BarXAxis" MinimumValue="0" Interval="30" Label="{}{}" />
                <ig:CategoryYAxis x:Name="BarYAxis" Label="{}{Duration}">
                </ig:CategoryYAxis>
            </ig:XamDataChart.Axes>
            <ig:XamDataChart.Series>
                <ig:StackedBarSeries x:Name="StackedBarSeries" XAxis="{Binding ElementName=BarXAxis}" YAxis="{Binding ElementName=BarYAxis}">
                    -->
        <!--<ig:StackedBarSeries.Series>
                        <ig:StackedFragmentSeries ValueMemberPath="Coal" Title="Coal" />
                        <ig:StackedFragmentSeries ValueMemberPath="Hydro" Title="Hydro" />
                        <ig:StackedFragmentSeries ValueMemberPath="Nuclear" Title="Nuclear" />
                        <ig:StackedFragmentSeries ValueMemberPath="Gas" Title="Gas" />
                        <ig:StackedFragmentSeries ValueMemberPath="Oil" Title="Oil" />
                    </ig:StackedBarSeries.Series>-->
        <!--
                </ig:StackedBarSeries>
                -->
        <!--<ig:BarSeries x:Name="BarSeries" ValueMemberPath="Value" XAxis="{Binding ElementName=BarXAxis}" YAxis="{Binding ElementName=BarYAxis}" MarkerTemplate="{StaticResource MarkerTemplate}" Brush="Red"/>-->
        <!--

            </ig:XamDataChart.Series>
        </ig:XamDataChart>-->
    </Grid>
</UserControl>
